package com.medical.model.admin;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import com.medical.model.DbOperation;

public class AdminDbOperation extends DbOperation {

	public static boolean saveOrUpdate(Object obj) {
		DbOperation a = new DbOperation();
		a.saveOrUpdate1(obj);
		return true;
	}

	public boolean delete(Object obj) {

		return false;
	}

	public List<Object> list(Class cls) {

		return null;
	}

	public static List listAllRole() {
		DbOperation a = new DbOperation();
		return a.listAll(Role.class);
	}

	public static List listAllPerson() {
		DbOperation a = new DbOperation();
		return a.listAll(Personal.class);
	}

	public static List listPerson(Map param) {
		DbOperation a = new DbOperation();
		return a.listByJpaQl(Personal.class, param);
	}

}
